package io.renren.modules.app.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.renren.modules.bs.entity.BsDepartmentPatientImgEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import java.util.Date;
import java.util.List;

@Data
@ApiModel(value = "录入病人信息")
public class PatientDto{

    private Long departmentPatientId;

    @ApiModelProperty(value = "科室ID",required = true)
    @NotBlank(message="请选择科室")
    private Long departmentId;

    @ApiModelProperty(value = "姓名",required = true)
    @NotBlank(message="姓名不能为空")
    private String patientName;

    @ApiModelProperty(value = "身份证号")
    private String idNumber;

    @ApiModelProperty(value = "性别(1男2女)",required = true)
    @NotBlank(message="性别不能为空")
    private Integer gender;

    @ApiModelProperty(value = "住院时间(格式yyyy-MM-dd)",required = true)
    @NotBlank(message="住院时间不能为空")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date hospitalizationDate;

    @ApiModelProperty(value = "出院时间")
//    @NotBlank(message="出院时间不能为空")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date leaveHospitalDate;

    @ApiModelProperty(value = "入院照片")
    private List<BsDepartmentPatientImgEntity> patientImgEntityList;

    @ApiModelProperty(value = "其他信息")
    private String otherMessage;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "病床号")
    private String wardNumber;

    @ApiModelProperty(value = "病室号")
    private String bedNumber;

    @ApiModelProperty(value = "图片")
    private String patientImg;
}
